package com.hwc.demo.service;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.hwc.demo.pub.service.TicketService;

@Component //首先它是个spring容器bean
@Service //dubbo的注解，暴露服务，注册到zookeeper
public class TicketServiceImpl implements TicketService{
	@Override
	public String getTicket() {
		
		return "《功夫》·周星驰";
	}
}
